package com.usian.mapper;

import com.usian.pojo.Total;
import com.usian.pojo.User;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface UserMapper {
    List<Total> findList(Total total);

    void Add(Total user);

    @Delete("delete from total where id=#{id}")
    void del(Integer id);

    @Select("select * from total where id=#{id}")
    Total upd(Integer id);

    void update(Total user);

    List<Total> findAll(Total user);
}
